import { createRouter, createWebHashHistory } from "vue-router";
import { constRoute } from "./routes";
const router = createRouter({
    history: createWebHashHistory(),
    routes: constRoute,
    // 路由滚动行为 点击回到顶部
    scrollBehavior() {
        return {
            left: 0,
            top: 0
        }
    }
})


export default router